﻿using Appliaction.IAppServices.Base_Manage;
using Domain.IRepositorys.Base_Manage;
using EFCore.Repositorys.Base_Manage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.AppServices.Base_Manage
{
    public class DJBHService : IDJBHService
    {
        private readonly IDJBHRepository dJBHRepository;

        public DJBHService(IDJBHRepository dJBHRepository)
        {
            this.dJBHRepository = dJBHRepository;
        }

        /// <summary>
        /// 根据编号生成规则返回单据编号
        /// </summary>
        /// <param name="en_code"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public string DJBH(int en_code)
        {
            return dJBHRepository.DJBH(en_code);
        }
    }
}
